﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreFrame.Core.Orm;

namespace MarchEstate.Manager.BusinesEntity
{
    [Serializable]
    [Table(TableName = "WY_Customer", EntityType = EntityType.Table, IsGB = false)]
    public abstract class AbstractCustomer : CoreFrame.Business.AbstractBusines
    {
        private string _customerid;//
        /// <summary>
        /// 
        /// </summary>
        [Column(FieldName = "CustomerId", DataKey = true, IsSingleQuote = true, Match = "Custom:Guid", IsInsert = false)]
        public string CustomerId
        {
            get { return _customerid; }
            set { _customerid = value; }
        }
        private string _customername;//
        /// <summary>
        /// 
        /// </summary>
        [Column(FieldName = "CustomerName", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string CustomerName
        {
            get { return _customername; }
            set { _customername = value; }
        }
        private string _ownerid;//
        /// <summary>
        /// 
        /// </summary>
        [Column(FieldName = "OwnerId", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string OwnerId
        {
            get { return _ownerid; }
            set { _ownerid = value; }
        }
        private string _ownername;//
        /// <summary>
        /// 
        /// </summary>
        [Column(FieldName = "OwnerName", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string OwnerName
        {
            get { return _ownername; }
            set { _ownername = value; }
        }
        private int _joinFlag;
        [Column(FieldName = "JoinFlag", DataKey = false, IsSingleQuote = false, Match = "", IsInsert = true)]
        public int JoinFlag
        {
            get { return _joinFlag; }
            set { _joinFlag = value; }
        }

        private DateTime _joinDate;
        [Column(FieldName = "JoinDate", DataKey = false, IsSingleQuote = false, Match = "", IsInsert = true)]
        public DateTime JoinDate
        {
            get { return _joinDate; }
            set { _joinDate = value; }
        }

        private string _memo;//
        /// <summary>
        /// 
        /// </summary>
        [Column(FieldName = "Memo", DataKey = false, IsSingleQuote = true, Match = "", IsInsert = true)]
        public string Memo
        {
            get { return _memo; }
            set { _memo = value; }
        }
        private int _deleteflag;//
        /// <summary>
        /// 
        /// </summary>
        [Column(FieldName = "DeleteFlag", DataKey = false, IsSingleQuote = false, Match = "", IsInsert = true)]
        public int DeleteFlag
        {
            get { return _deleteflag; }
            set { _deleteflag = value; }
        }
    }
}
